package Person.Buffer;

import java.io.*;
import java.util.ArrayList;

public class ArrayListToTxtDemo02 {
    public static void main(String[] args) throws IOException {

       //创建字符缓冲输入流对象
        BufferedReader br = new BufferedReader(new FileReader("C:\\Users\\win10\\IdeaProjects\\IDEA\\array.txt"))
;
        //创建结合对象
        ArrayList<String> array = new ArrayList<>();
String line;
while((line=br.readLine())!=null){
    array.add(line);
}

br.close();

for(String s:array){
    System.out.println(s);
}





    }
}
